package com.ias.agdis_r.module;

/**
 * 本地表或其他常用参数静态变量
 * 
 * @author wanghu
 * 
 */
public class ParameterModel {

	/**  收到生产通告声效 */
	public static final int MUSIC_EFFECT_RECEIVE_INFO = 1;// 收到生产通告声效
	/**  收到任务声效 */
	public static final int MUSIC_EFFECT_RECEIVE_TASK = 2;// 收到任务声效
	/**  对讲不在线 */
	public static final int MUSIC_EFFECT_PTT_OFFLINE = 3;// 对讲不在线
	/** 未登录提示 */
	public static final int MUSIC_EFFECT_UNLOGIN_REMIND = 4; //未登录提示
	/** SD卡不可用提示 */
	public static final int MUSIC_EFFECT_SDCARD_UNABLE = 5; //SD卡不可用提示
	/** 用户掉线退出 */
	public static final int MUSIC_EFFECT_USER_OFFLINE = 6; //用户掉线退出
	/** 网络不可用 */
	public static final int MUSIC_EFFECT_NET_UNAVAILABLE = 7; //网络不可用
	/** 单据更新 */
	public static final int MUSIC_EFFECT_DOC_UPDATE = 8; //单据更新
	/** 是否是开机启动  默认为FALSE，接收到开启广播时设为TRUE */
	public static boolean bootFlag = false;           //是否是开机启动  默认为FALSE，接收到开启广播时设为TRUE
	/** 是否是已经有关机事件，默认为FALSE，接收到关机广播时设为TRUE */
	public static boolean shutdownFlag = false;           //是否是已经有关机事件，默认为FALSE，接收到关机广播时设为TRUE
	/** OK键响应事件，亮屏后第一次按OK键不响应 */
	public static boolean centerActionFlag = true;           //OK键响应事件，亮屏后第一次按OK键不响应
	/** 是否已经跳转到MainActivity界面 */
	public static boolean startMainActivityFlag = false;      //是否已经跳转到StartActivity界面
	/** 是否已经跳转到MainActivity界面 */
	public static boolean startLoginActivityFlag = false;     //是否已经跳转到LoginActivity界面
	/** 菜单中显示短语 */
	public static boolean showMsgFlag = false;        //菜单中显示短语
	/** 耳机按键对讲标记 */
	public static boolean headsetFlag = false;   //耳机按键对讲标记
	/**  最后一个可进行强制登录的帐号 */
	public static String  forcedLoginAccount = null;// 最后一个可进行强制登录的帐号
	/**  SD卡不可用 */
	public static boolean SDCardDisabled = false;// SD卡不可用
	/** 拨打电话是否触发 */
	public static boolean bCallTrigger = false;//拨打电话是否触发

	public static boolean isBoxPopMode = false; //盒子弹出模式
	
	/** 公网数字编号 */
	public static final String PUBLIC_TAB_NUM = "1"; //公网数字编号
	/** 专网数字编号 */
	public static final String PRIVATE_TAB_NUM = "2"; //专网数字编号
	/** WIFI数字编号 */
	public static final String WIFI_TAB_NUM = "3"; //WIFI数字编号
	
	/** 字段分割* */
	public static final String VALUE_REGULAREXPRESSION = "@__@";

	// 按登陆时的用户账号
	public static String TOLOGIN_ENB = null;
	
	//IMEI号
	public static String IMEI_ID = "";
	//程序版本号
	public static String AP_VER_ID = "";

	/** 不要删的表 */
	public static final String T_DONTDELETEME = "T_DONTDELETEME";

	/** 航空公司名称 */
	public static final String COMPANY = "COMPANY";//航空公司名称
	/** 调度系统版本号 */
	public static final String VERSION = "VERSION";//调度系统版本号
	/** 语音电话 */
	public static final String  PHONE_STATUS = "PHONE_STATUS"; //语音电话
	/** 可使用相机权限，如果为ALL，则安装此APK应用全部拥有拍照权限 */
	public static final String  CAMERA_ROLE = "CAMERA_ROLE"; //可使用相机权限，如果为ALL，则安装此APK应用全部拥有拍照权限
	
	/** Log日志的表 **/  //add by zhangsc
	/** LOG表 */
	public static final String T_LOG ="T_LOG";			//LOG表
	/** LOG开关 */
	public static final String LOG_CHECK="LOG_CHECK";			//LOG开关
	/** LOG大小 */
	public static final String LOG_SIZE="LOG_SIZE";				//LOG大小

	/** 最后登录的用户 **/
	/**  内部数据库 */
	public static final String T_LAST_USER = "T_LAST_USER";// 内部数据库
	public static final String LOGIN_ACCOUNT = "account";
	public static final String LOGIN_PASSWORD = "password";
	public static final String BOOST_VALUE = "boost_value";

	/** 设备信息表* */
	public static final String T_MACHINEINFO = "T_MACHINEINFO";
	/** 设备号 */
	public static final String  SSN = "SSN"; //设备号

	public static final String TASK_LIST = "TaskList";
	public static final String TASK_NEWNUM = "TaskNewNum";

	/**  是否为新任务 Y,N */
	public static final String TASK_NEW = "NEW";// 是否为新任务 Y,N
	/**  新下发的任务 */
	public static final String TASK_Y = "Y";	// 新下发的任务
	/**  已处理的任务 */
	public static final String TASK_N = "N";	// 已处理的任务

	public static final String MEMBER_LIST = "MemberList";

	/**  自增序号 */
	public static final String ID = "ID";// 自增序号

	/** (生产通告,工作短语)信息临时表* */
	public static final String MESSAGE_LIST = "MessageList";
	
	/**  信息类型 P:生产通告信息,W：工作短语信息 */
	public static final String TYPE = "TYPE";// 信息类型 P:生产通告信息,W：工作短语信息

	// 任务相关生产通告类型
	public static final String TASK_SHENGCHANTONGGAO = "TBDWI";

	/** 情况反映表 开机登录成功后首次请求完成 将已请求字段设置为true,注销后设置为false;false时才发送请求服务器数据* */
	// 注销后设置为false
	public static final String T_WORKINGPHRASE = "T_WORKINGPHRASE";

	// 生产通告能否回复的类型
	public static final String TASK_MENAGE_TYPE = "10";
	public static final String HCC_MENAME_TYPE = "02";

	/** 震动效果* */
	public static final String T_VIBERATION_EFFECT = "T_VIBERATION_EFFECT";
	/** 语音播报* */
	public static final String T_VOICE_EFFECT = "voice_broadcast";
	public static final String T_VOICE_EFFECT_TYPE = "voice_type";
	public static final String T_VOICE_EFFECT_TOAST = "voice_toast";
	
	/**
	 * 收到信息时
	 */
	public static final String RECEIVE_INFO = "receive_info";

	/**
	 * 收到生产通告时
	 */
	public static final String RECEIVE_PRODUCT = "receive_product";
	/**
	 * 网络不可用时
	 */
	public static final String NET_UNAVAILABLE  = "net_unavailable";
	/**
	 * 单据更新时
	 */
	public static final String DOC_UPDATE  = "doc_update";

	/** 网络选择配置表* */
	public static final String T_NET_SELECT_INFO = "T_NET_SELECT_INFO";
	/**  字段 */
	public static final String NET_LIST = "netList";// 字段
	public static final String PRIVATE_TAB = "private_tab";
	/**  时间间隔 */
	public static final String INTERVAL = "interval";// 时间间隔
	/** 服务程序PING开关	 */
	public static final String SWITCH_PING = "switchPing"; 	//服务程序PING开关	


	/**更新文件配置表**/
	public static final String UPDATE_CONFIG_PACKAGE = "IASUpdate";
	/**更新文件配置表**/
	public static final String T_UPDATE_CONFIG = "T_UPDATE_CONFIG";
	public static final String CONFIG_VERSION = "CONFIG_VERSION";                 //配置文件升级版本
	public static final String AGDIS_PUB_UP_URL = "AGDIS_PUB_UP_URL";
	public static final String AGDIS_PRI_UP_URL = "AGDIS_PRI_UP_URL";

	/*区域类型*/
	public static final String AREA_LIST = "AREA_LIST";     //区域列表
	public static final String AREA = "AREA";					//区域
	public static final String KEY = "KEY";						//区域代号字母
	public static final String NAME = "NAME";					//区域名称

	public static final String LIMIT = "LIMIT";			               //限制范围
	public static final String LIMIT_TYPE = "LIMIT_TYPE";		       //限制类型
	public static final String LIMIT_START = "LIMIT_START";         //开始编号
	public static final String LIMIT_END = "LIMIT_END";		       //结束编号
	public static final String LIMIT_INCLUDE = "LIMIT_INCLUDE";	   //限制包含

	
	// 网络字段
	/**  字段服务器IP */
	public static final String NET_IP_RESTFUL = "ip_restful";// 字段IP
	/**  字段服务器端口 */
	public static final String NET_PORT_RESTFUL = "port_restful";// 字段端口
	/**  字段推送服务器IP */
	public static final String NET_IP_PUSH = "ip_push";// 字段IP
	/**  字段推送服务器端口 */
	public static final String NET_PORT_PUSH = "port_push";// 字段端口



	/**  字段用户名 */
	public static final String NET_NAME = "name";// 字段用户名
	/**  字段密码 */
	public static final String NET_PASSWORD = "password";// 字段密码

	/**  字段SSID */
	public static final String NET_SSID = "ssid";// 字段SSID

	/** 专网配置表* */
	public static final String T_PRIVATE_INFO = "T_PRIVATE_INFO";
	/** 网络标识  wm0,eth0,hed0  1.8,3.3,LTE */
	public static final String PRIVATE_NET_TAB = "privateNetTab";  //网络标识  wm0,eth0,hed0  1.8,3.3,LTE
	
	/** 专网切回最小信号强度 */
	public static final String PRIVATE_UP_RSSI  = "urssi";	 //专网切回最小信号强度
	/** 专网切出最小信号强度 */
	public static final String PRIVATE_DOWN_RSSI = "drssi";  //专网切出最小信号强度
	/** 专网切回最小信号质量 */
	public static final String PRIVATE_UP_CINR = "ucinr";    //专网切回最小信号质量
	/** 专网切出最小信号质量 */
	public static final String PRIVATE_DOWN_CINR = "dcinr";  //专网切出最小信号质量
	
	/** 专网小于最小信号强度几次后可以做出切换到其它网络 */
	public static final String PRIVATE_DOWN_MAX = "dc";   	//专网小于最小信号强度几次后可以做出切换到其它网络
	/** 专网大于最小信号强度几次后可以从备网切回专网 */
	public static final String PRIVATE_UP_MAX = "uc";   	//专网大于最小信号强度几次后可以从备网切回专网

	/** 路由程序LOG开关 */
	public static final String LOG_ROUTE="LOG_ROUTE";			//路由程序LOG开关
	/** GPRS表 * */
	public static final String T_PUBLIC_INFO = "T_PUBLIC_INFO";
	public static final String TYPE_PUBLIC = "public";

	/** 当前使用WIFI表 * */
	public static final String T_WIFI_INFO = "T_WIFI_INFO";

	public static final String T_DNS_CONFIG = "T_DNS_CONFIG";

	/**server列表信息表 * */
	public static final String T_Server_Config = "T_Server_Config";
	public static final String UPSERVER = "UPSERVER";

	/**按键配置**/
	public static final String T_KEYPRESS = "T_KEYPRESS";
	public static final String BACK_ISUSING = "BACK_ISUSING";

	/**消息盒子配置**/
	public static final String T_BOX_SETTING = "T_BOX_SETTING";
	public static final String BOX_POP = "BOX_POP";
	/** 语音播放排队播放 */
	public static final String TTS_ORDER = "TTS_ORDER";

	/**多资源锁定配置**/
	public static final String T_CHOOSELOCK = "T_CHOOSELOCK";
	public static final String MULTISELECT_ISUSING = "MULTISELECT_ISUSING";

	/** GPS列表信息表 * */
	public static final String T_GPS_INFO = "T_GPS_INFO";
	/**  最小速度 */
	public static final String MINSPEEDING = "minSpeed";// 最小速度
	/**  最大速度 */
	public static final String MAXSPEEDING = "maxSpeed";// 最大速度
	/**  是否使用 */
	public static final String ISUSING = "isUsing";		// 是否使用
	/** 采集GPS数据间隔 */
	public static final String COLLECT_INTERVAL = "collectInterval";	//采集GPS数据间隔
	/** 发送GPS数据间隔 */
	public static final String SEND_INTERVAL = "sendInterval";			//发送GPS数据间隔

	/**  偏离正北方的度数 */
	public static final String GPS_BEAR = "GPS_BEAR";			// 偏离正北方的度数
	/**  维度 */
	public static final String GPS_LATITUDE = "GPS_LATITUDE";	// 维度
	/**  经度 */
	public static final String GPS_LONGITUDE = "GPS_LONGITUDE";	// 经度
	/**  速度 */
	public static final String GPS_SPEED = "GPS_SPEED";			// 速度
	/**  时间 */
	public static final String GPS_TIME = "GPS_TIME";			// 时间
	
	/**航班信息表**/
	public static final String T_FLIGHT_INFO = "T_FLIGHT_INFO";
	/** 代理过滤标识    Y-代理 N-非代理 A-全部 */
	public static final String IFA = "IFA";   //代理过滤标识    Y-代理 N-非代理 A-全部
	/**配置今日航班，默认显示，配1隐藏**/
	public static final String HIDE_TODAY_FLIGHT = "HIDE_TODAY_FLIGHT";// 配置今日航班，默认显示，配1隐藏
	/**今日航班时间**/
	public static final String TODAY_FLIGHT_TIME = "TODAY_FLIGHT_TIME";// 今日航班时间

	/** 锁定机位配置表 **/
	public static final String T_LOCK_AIRECRAFT_SEAT = "T_LOCK_AIRECRAFT_SEAT";
	public static final String IS_LOCK_PSN = "IsLockPsn";
	public static final String ITEM_PSN = "LockPsn";
	public static final String ITEM_RTP = "LockRtp";
	public static final String LOCK_PSN_LIST = "LockPsnList";
	
	public static final String T_LOCK_AIRECRAFT = "T_LOCK_AIRECRAFT";
	public static final String LOCK_FLN_LIST = "LockFlnList";
	public static final String LOCK_REG_LIST = "LockRegList";
	public static final String LOCK_GAT_LIST = "LockGatList";
	public static final String LOCK_APS_LIST = "LockApsList";

	public static final String LOCK_TYPE_PLACECODE = "PLACECODE";
	public static final String LOCK_TYPE_GTNAME = "GTNAME";
	public static final String LOCK_TYPE_BLT = "BLT";
	public static final String LOCK_TYPE_PSN = "PSN";
	public static final String LOCK_TYPE_FLN = "FLN";
	public static String[][] LOCKTYPENAMEMAP = { { LOCK_TYPE_PLACECODE, "机位"},{ LOCK_TYPE_GTNAME, "登机口"},
			{ LOCK_TYPE_BLT, "行李转盘"}, { LOCK_TYPE_PSN, "分拣口"}};

	public static final String T_TASK_GRIDVIEW_MODE = "T_TASK_GRIDVIEW_MODE";
	//超大号字体任务视图
	public static final String TASK_GRIDVIEW = "TASK_GRIDVIEW";
	//查询航班输入限制配置
	public static final String FLIGHT_SEARCH_UNLIMIT_FLN = "FLIGHT_SEARCH_UNLIMIT_FLN";
	public static final String FLIGHT_SEARCH_UNLIMIT_REG = "FLIGHT_SEARCH_UNLIMIT_REG";
	public static final String FLIGHT_SEARCH_UNLIMIT_PSN = "FLIGHT_SEARCH_UNLIMIT_PSN";
	public static final String FLIGHT_SEARCH_UNLIMIT_BLT = "FLIGHT_SEARCH_UNLIMIT_BLT";
	public static final String FLIGHT_SEARCH_UNLIMIT_GAT = "FLIGHT_SEARCH_UNLIMIT_GAT";

	public static final String AI_T_TASKREQUEST = "AI_T_TASKREQUEST";
	//add by huzedong
	public static final String AI_T_FLIGHTQUERY = "AI_T_FLIGHTQUERY";
	public static final String AI_T_TUOCHUSCAN = "AI_T_TUOCHUSCAN";
	public static final String AI_T_TUOHUISCAN = "AI_T_TUOHUISCAN";
	public static final String AI_T_SYNCCONFIG = "AI_T_SYNCCONFIG";
	public static final String AI_T_GPSINFO = "AI_T_GPSINFO";
	public static final String AI_T_CAMERA = "AI_T_CAMERA";
	public static final String AI_T_FLIGHTSUB = "AI_T_FLIGHTSUB";
	public static final String AI_T_AUTOAPPLY = "AI_T_AUTOAPPLY";
	public static final String AI_T_SITUATIONREPORT = "AI_T_SITUATIONREPORT";
	public static final String AI_T_WORKRECORDER = "AI_T_WORKRECORDER";
	public static final String AI_T_PRODUCTINFO = "AI_T_PRODUCTINFO";
	public static final String AI_T_TASKTEMP = "AI_T_TASKTEMP";
	public static final String AI_T_PTTUSERLIST = "AI_T_PTTUSERLIST";
	public static final String AI_T_PHONECALL = "AI_T_PHONECALL";
	public static final String AI_T_TASKMONITOR = "AI_T_TASKMONITOR";
	public static final String AI_T_TASKEXE = "AI_T_TASKEXE";
	public static final String AI_T_DOCPRINT = "AI_T_DOCPRINT";

	/**  字段ID 自增 */
	public static final String NET_ID = "id";// 字段ID 自增

	// 情况反映类型
	public static final String QINGKUANGFANYING_TYPE = "qingKuangFanYing_type";
	/** 普通情况反映 */
	public static final int QINGKUANGFANYING_NORMAL = 0;//普通情况反映
	/** 任务信息中的情况放映 */
	public static final int QINGKUANGFANYING_TASK = 1;	//任务信息中的情况放映
	public static final int QINGKUANGFANYING_ENDOUTHTA = 2;
	public static final String FLIGHT_TYPE = "flight_type";
	public static final int FLIGHT_ARRIVAL = 0;
	public static final int FLIGHT_DEPARTURE = 1;

	/** 航班信息查询结果* */
	public static final String FLIGHT_RESULT = "flight_result";
	
	// VOIP电话状态
	public static final String VOIP_CALLED_IN = "21";
	public static final String VOIP_CALL_RECVED = "22";
	public static final String VOIP_HANGE_OFF = "23";
	
	public static final String VOIP_CALL_LAUNCH = "100";
	public static final String VOIP_CALL_SURE = "101";
	public static final String VOIP_CALLED_ANSWER = "102";
	
	//增加号码
	/** 姓名号码文件 */
	public static final String T_VOICECALL = "T_VOICECALL"; //姓名号码文件
	public static final String VOICE_DEPARTMENT = "department";
	public static final String VOICE_NAME = "name";
	public static final String VOICE_PHONENUM = "phoneNum";
	
	//HCC监控项切换后，对应的航班任务详细信息
	public static String HCC_MONITOR_TNB = "";
	public static String HCC_S_SK_YX = "S_SK_YX";
	
	//电话状态
	/** SIM卡不可用 */
	public static final int STATE_SIM_DISABLE = 0; //SIM卡不可用
	/** 挂断 */
	public static final int STATE_HANG_UP =  1;    //挂断
	/** 呼叫中 */
	public static final int STATE_CALL = 2;        //呼叫中
	/** 通话中 */
	public static final int STATE_TALKING = 3;     //通话中
	/** 被呼叫 */
	public static final int STATE_RING = 4;        //被呼叫
	/** 呼叫超时 */
	public static final int STATE_TIMEOUT = 18;	   //呼叫超时
	
	public static String getLockListName(String lockType){
		String lockList = ParameterModel.LOCK_PSN_LIST;
		if (lockType.equals(LOCK_TYPE_PLACECODE)) {
			lockList = ParameterModel.LOCK_PSN_LIST;
		} else if (lockType.equals(LOCK_TYPE_FLN)) {
			lockList = ParameterModel.LOCK_FLN_LIST;
		} else if (lockType.equals(LOCK_TYPE_PSN)) {
			lockList = ParameterModel.LOCK_REG_LIST;
		} else if (lockType.equals(LOCK_TYPE_GTNAME)) {
			lockList = ParameterModel.LOCK_GAT_LIST;
		}if (lockType.equals(LOCK_TYPE_BLT)) {
			lockList = ParameterModel.LOCK_APS_LIST;
		}
		return lockList;
	}
	//航班订阅
	public static final String T_FLIGHT_SUB = "T_FLIGHT_SUB";
	public static final String T_FLIGHT_SUB_FKE= "FKE";
	//add by huzedong
	public static final String T_FLIGHT_SUB_FLN= "FLN";
	
	/** 主界面显示风格设置 * */
	public static final String T_MAINMENU_STYLE = "T_MAINMENU_STYLE";
	public static final String STYLE = "style"; 
	
	/**
	 * 刷新UI事件
	 */
	/** 刷新监控项列表 */
	public static final int UI_UPDATE_MONITOR =1;  //刷新监控项列表
	/** 刷新服务标注列表 */
	public static final int UI_UPDATE_SERVICE =2;  //刷新服务标注列表
	/** 刷新锁定机位界面 */
	public static final int UI_UPDATE_LOCK = 3;  //刷新锁定机位界面
	/** 刷新航班订阅界面 */
	public static final int UI_UPDATE_SUB =	4;  //刷新航班订阅界面
	/** 刷新消息模板 */
	public static final int UI_UPDATE_MSGTMEP =	5;  //刷新消息模板
	/** 刷新单据内容信息 */
	public static final int UI_UPDATE_DOCDETAIL =	6;  //刷新单据内容信息
	/** 刷新单据摘要信息 */
	public static final int UI_UPDATE_DOCREMARK =	7;  //刷新单据摘要信息
	/** 刷新单据打印成功结果 */
	public static final int UI_UPDATE_DOCSUCCESS =	7;  //刷新单据打印成功结果
	
}
